package com.east.mapper;

import com.east.common.DataFilter;
import com.east.dto.CustomerDTO;
import com.east.entity.Customer;
import com.east.query.CustomerQuery;

import java.math.BigDecimal;
import java.util.List;

/**
* @author eastj
* @description 针对表【t_customer(客户表)】的数据库操作Mapper
* @createDate 2025-01-17 20:43:35
* @Entity com.east.entity.Customer
*/
public interface CustomerMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);
    @DataFilter(tableAlias = "tc",fieldName = "owner_id")
    List<CustomerDTO> list(CustomerQuery customerQuery);

    int totalNum();

    CustomerDTO info(Integer id);
}
